package com.sxbbc.common.core.entity.jz;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 秒杀订单附属表
 * </p>
 *
 * @author leehao
 * @since 2019-06-25
 */
public class OrderSeckillConfig implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    private Integer cid;

    /**
     * 订单号
     */
    private String orderCode;

    /**
     * 订单子表id
     */
    private Integer detailid;

    /**
     * 数量
     */
    private Integer qty;

    /**
     * 原价
     */
    private BigDecimal oldprice;

    /**
     * 限时价
     */
    private BigDecimal price;

    /**
     * 秒杀主表id
     */
    private Integer skid;

    /**
     * 秒杀子表id
     */
    private Integer skDetailid;

    private LocalDateTime createTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }
    public String getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }
    public Integer getDetailid() {
        return detailid;
    }

    public void setDetailid(Integer detailid) {
        this.detailid = detailid;
    }
    public Integer getQty() {
        return qty;
    }

    public void setQty(Integer qty) {
        this.qty = qty;
    }
    public BigDecimal getOldprice() {
        return oldprice;
    }

    public void setOldprice(BigDecimal oldprice) {
        this.oldprice = oldprice;
    }
    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }
    public Integer getSkid() {
        return skid;
    }

    public void setSkid(Integer skid) {
        this.skid = skid;
    }
    public Integer getSkDetailid() {
        return skDetailid;
    }

    public void setSkDetailid(Integer skDetailid) {
        this.skDetailid = skDetailid;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "OrderSeckillConfig{" +
        "id=" + id +
        ", cid=" + cid +
        ", orderCode=" + orderCode +
        ", detailid=" + detailid +
        ", qty=" + qty +
        ", oldprice=" + oldprice +
        ", price=" + price +
        ", skid=" + skid +
        ", skDetailid=" + skDetailid +
        ", createTime=" + createTime +
        "}";
    }
}
